

#ifndef __HelloCpp__RootWindow__
#define __HelloCpp__RootWindow__

#include <iostream>
#include <string>
#include <vector>
#include "CrossApp.h"
#include "CommonHttpManager.h"

USING_NS_CC;

class RootWindow: public CAWindow
{
    
public:

	static RootWindow* getInstance();
    
	RootWindow();
    
	virtual ~RootWindow();
    
    virtual bool init();

	void keyBackClicked();

	void loadCityConfigs();
	const std::vector< std::vector<std::string> >& getAllCitys();
	std::string getCurCityName();

	bool getCurProvinceAndCity(int& i, int& j);
	void setCurProvinceAndCity(int i, int j);

	CC_SYNTHESIZE_READONLY(CANavigationController*, m_pRootNavigationController, RootNavigationController);

	void BackToPreviousController();

	void EnterToSwitchCityController();

private:
	std::vector< std::vector<std::string> > m_vAllCitys;
};


#endif /* defined(__HelloCpp__ViewController__) */
